package com.fottas.adware.core;

import cn.hutool.core.util.StrUtil;

/**
 * 证书模式运行时环境
 */
public class CertEnvironment {
    /**
     * apiclient_cert.p1 证书文件路径
     */
    private String certPath;

    /**
     * 证书密码
     */
    private String certPass;

    public CertEnvironment(String certPath, String certPass) {
        if (StrUtil.isBlank(certPath) || StrUtil.isBlank(certPass)) {
            throw new RuntimeException("证书参数certPath或certPass设置不完整。");
        }
        this.certPath = certPath;
        this.certPass = certPass;
    }

    public String getCertPath() {
        return certPath;
    }

    public String getCertPass() {
        return certPass;
    }
}
